home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6451 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.tau.ac.il!usenet
  2. From: "Avi L." <avil@sapiens.com>
  3. Newsgroups: comp.lang.c,comp.sys.amiga.programmer
  4. Subject: Re: pointer conversion error
  5. Date: Thu, 28 Mar 1996 10:03:17 +0200
  6. Organization: Sapiens Tech.
  7. Message-ID: <315A47C5.4D99@sapiens.com>
  8. References: <381.6657T11T967@mistral.co.uk>
  9. NNTP-Posting-Host: honda.sapiens.co.il
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (WinNT; I)
  14.  
  15. Adam Atkinson wrote:
  16. > my c compiler (SAS/C version 6.56) creates a warning about the following:
  17. >                         printf("%u %u %u \n", i, l, h);
  18. > three.c 36 Warning 104: conversion from pointer to const/volatile to pointer to non-const/volatile
  19. > What am I doing wrong? i,l and h are unsigned longs.
  20. > Adam Atkinson - ghira@mistral.co.uk / etlaman@etlxdmx.ericsson.se
  21. > Viva la pappa col pomodoro!
  22.  
  23. well the problem obviously isn't on that line since you're not using any 
  24. pointers at all, the problem might be (and probably is) on the previous line.
  25. compilers tend not to report the exact line in which the error/warning 
  26. actually happened but the following line instead. i must say that the 
  27. other answers i've read made me laugh at how stupid they were i mean, what 
  28. the hell does a prototype have to do with this problem anyway?
  29.  
  30. well, hope this helps and if not then just ignore the warning it won't kill 
  31. ya.
  32.  
  33. Avi Lev.
  34.